#ifndef PLAYLIST_H_INCLUDED
#define PLAYLIST_H_INCLUDED
#include <string>
#include <list>
#include <vector>
using namespace std;
struct Trec
{
	char *f_path;
	//TTags tags
	float duration;
};
typedef unsigned int uint;
class playlist
{
private:
    char *file_name;
	vector<Trec> lst;
	unsigned int cur_id;
public:
	playlist();
    playlist(char *fname);
    void add(char *fname);
	void clear();
    void load(char *fname);
	void set_id(uint id);
	uint selected_id();
	uint size();
	Trec get(uint id);

};
#endif
